package string;

/**
 * 和谐用语
 */
public class Test3 {
    public static void main(String[] args) {
        String regex = "(wqnmlgb|cnm|dsb|nc|mdzz|nmsl|djb)";
        String message = "wqnmlgb!你个dsb!你怎么这么nc!你就一个djb!";
        message = message.replaceAll(regex, "***");
        System.out.println(message);
    }
}






